package com.ziytek.web.citizen.pojo.basic;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.ziytek.web.citizen.constant.TableConstant;
import lombok.*;

/**
 * @author fenghx
 * @version v1.0
 * @className VoltageTable
 * @descripton 用户登录导出表
 * @date 2023/6/13 17:52
 * <p>
 * 自增主键ID
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = TableConstant.TABLE_SETTING_DETAIL)
public class SettingDetailTable extends BaseModel {

    /**
     * stepId
     */
    @Column(comment = "stepId")
    private Long stepId;


    /**
     * 工步执行顺序 数值越小执行顺序越靠前
     */
    @Column(comment = "settingOrder")
    private Integer settingOrder;

    /**
     * 工步操作类型
     * cccv-恒流恒压充电
     * cc-恒流充电
     * cv-恒压充电
     * ccd-恒流放电
     * sl-搁置
     * crd-恒阻放电
     * cpd-恒功率放电
     */
    @Column(comment = "setType")
    private String setType;

    /**
     * 电流(恒流恒压充电、恒流充电、恒流放电不能为空)
     */
    @Column(comment = "current")
    private Integer current;

    /**
     * 电压(恒流恒压充电、恒压充电不能为空)
     */
    @Column(comment = "voltage")
    private Integer voltage;

    /**
     * 截止数据类型 c-电流 v-电压
     */
    @Column(comment = "cutOffType")
    private String cutOffType;

    /**
     * 截止数据 恒流恒压充电、恒压充电传入电流数据； 恒流充电、恒流放电传入电压数据
     */
    @Column(comment = "cutOff")
    private Integer cutOff;

    /**
     * 预计执行时间(正整数,单位分钟) setType = standing时必须大于0
     */
    @Column(comment = "expectedTime")
    private Integer expectedTime;

    /**
     * 0-正常 1-删除
     */
    @Column(comment = "isDelete")
    private Integer isDelete;
}
